/**
 * Created with IntelliJ IDEA.
 * Description: 将 2022 拆分成不同的质数的和，请问最多拆分成几个
 */
public class Test {
    public static void main(String[] args) {
        int[] num = new int[303];
        int j = 0;
        for (int i = 2; i < 2000; i++) {
            boolean flg = func(i);
            if(flg) {
                num[j] = i;
                j++;
            }
        }

    }

    public static boolean func(int num) {
        for (int i = 2; i <= Math.sqrt(num); i++) {
            if(num % i == 0) {
                return false;
            }
        }
        return true;
    }
}
